package cn.lhjl.day04.bankserve;

import java.util.Date;

public class BaseUser extends User {
    public BaseUser() {
    }

    public BaseUser(String name, String sex, Date birthday, String idCard, String phoneNum, Account account) {
        super(name, sex, birthday, idCard, phoneNum, account);
    }

    @Override
    public void saveMoney(double money) {
        System.out.println("到柜台存款");
        super.saveMoney(money);
    }

    @Override
    public double receiveMoney(double money) {
        System.out.println("到柜台取款");
        super.receiveMoney(money);
        return money;
    }

}
